// 判断素数，第一阶段

#include <iostream>
using namespace std;

int GetNum();

void IsItPrime(int n);

bool CheckIt(int n);

int main() {
    cout << "在main中\n";

    int n = GetNum();
    cout << "从GetNum返回main, n的值是: " << n << "\n";

    IsItPrime(n);
    cout << "回到main, 完成任务\n";
}

int GetNum() {
    int n = 1;
    cout << "进入GetNum函数中, 将返回1\n";
    bool ok = CheckIt(n);
    return n;
}

bool CheckIt(int n) {
    cout << "进入CheckIt中, n变量等于 " << n << "\n";
    return true;
}

void IsItPrime(int n) {
    cout << "进入IsItPrime函数, n的值等于 " << n << "\n";
}
